<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>
<g:set var="entityName"  value="${message(code: 'team.label', default: 'Team')}"></g:set>
<title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
  <div class="main-form">
  	<h1 style="color: blue"> Create Team </h1>
<%-- <g:if test="${flash.message}">
  		<div class = "message" role="status">${flash.message}</div>
  	</g:if>--%> 
  	<g:hasErrors bean="${team}">
  		<ul class="errors" role="alert">
				<g:eachError bean="${team}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
		</ul>
  	</g:hasErrors>
  	<g:form action="saveTeam" enctype="multipart/form-data" method="post">
  		<fieldset >
			<g:render template="form"/>
		</fieldset>
		<fieldset class = "info" style="text-align: center">			
			<input class="save btn btn-info" id="add-team" name="addTeamBtn" type="submit" value="Create"  />
		</fieldset>
  	</g:form>
  </div>
</body>
<script type="text/javascript">
		$(document).ready(function(){
			$('#dp1').datepicker('setValue', new Date());
		})
</script>
</html>